package com.buba.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.buba.domain.po.Student;
import com.buba.mapper.StudentMapper;
import com.buba.service.IStudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author bilal
 * @since 2023-08-29
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {

    @Override
    public Page<Student> queryStudent(Integer pageNo, Integer pageSize) {
        Page<Student> page = new Page<>(pageNo, pageSize);
        return lambdaQuery()
                .gt(Student::getScore,60)
                .page(page);
    }

}
